package com.zzz.gp.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;
import java.util.Map;
@Data
@Configuration
public class MailConfig implements Serializable {
    //发送人
    @Value("${spring.mail.username}")
    private String from;
    //邮件接收人
    @Value("${mail.to}")
    private String to;
    //抄送
    @Value("${mail.cc}")
    private String[] cc;
    //邮件主题
    private String subject;
    //邮件内容
    private String content;
    //作为freemarker中的插值数据源
    private Map<String, String> templateData;
}